package com.pond.pond.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 钓技文章收藏对象 fishing_technique_favorite
 * 
 * @author pond
 * @date 2024-01-15
 */
public class FishingTechniqueFavorite
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 文章ID */
    private Long techniqueId;

    /** 用户ID */
    private Long userId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTechniqueId(Long techniqueId) 
    {
        this.techniqueId = techniqueId;
    }

    public Long getTechniqueId() 
    {
        return techniqueId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCreateTime(Date createTime) 
    {
        this.createTime = createTime;
    }

    public Date getCreateTime() 
    {
        return createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("techniqueId", getTechniqueId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .toString();
    }
}